org.eclipse.vtp.framework.engine.runtime
Class Execution.Context
java.lang.Object
org.eclipse.vtp.framework.engine.support.AbstractReporter
org.eclipse.vtp.framework.engine.support.AbstractLogger
org.eclipse.vtp.framework.engine.support.AbstractContext
org.eclipse.vtp.framework.engine.support.AbstractExecutionContext
org.eclipse.vtp.framework.engine.runtime.Execution.Context
- All Implemented Interfaces:
- IContext, IExecutionContext, ILogger, IProcessContext, IReporter, ISessionContext, ICommandProcessor
- Enclosing class:
- Execution
protected final class Execution.Context
- extends AbstractExecutionContext
- implements ICommandProcessor
Implementation of the generic context.
- Author:
- Lonnie Pryor
|
Method Summary |
boolean |
enqueue(ICommand command)
Attempts to enqueue the specified command for execution by the process
controller. |
protected java.lang.Object[] |
lookupAllLocalServices(java.lang.String identifier)
Returns all the services registered under the specified identifier in this
registry or null if no such services can be found. |
protected java.lang.Object |
lookupLocalService(java.lang.String identifier)
Returns a service registered under the specified identifier in this
registry or null if no such service exists. |
protected java.lang.Object |
lookupReservedService(java.lang.String identifier)
Returns the reserved service if the specified identifier is one of the
reserved identifiers or null if these conditions are not
met. |
boolean |
process(ICommand command)
Attempts to enqueue the specified command for execution by the process
controller and then waits for all commands in the queue to be processed
before returning. |
| Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractExecutionContext |
clearAttribute, clearParameter, doReport, getAttribute, getAttributeNames, getExecutionID, getParameter, getParameterNames, getParameters, getProcessID, getProperty, getSessionID, isSeverityEnabled, loadClass, lookupAllInheritedServices, lookupInheritedService, setAttribute, setParameter, setParameters |
| Methods inherited from class org.eclipse.vtp.framework.engine.support.AbstractLogger |
debug, debug, debug, debug, doLog, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, warn, warn, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.vtp.framework.core.ILogger |
debug, debug, debug, debug, error, error, error, error, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, log, log, log, log, warn, warn, warn, warn |
lookupReservedService
protected java.lang.Object lookupReservedService(java.lang.String identifier)
- Description copied from class:
AbstractContext
- Returns the reserved service if the specified identifier is one of the
reserved identifiers or
null if these conditions are not
met.
- Overrides:
lookupReservedService in class AbstractExecutionContext
- Parameters:
identifier - The identifier of the service to return, will never be
null.
- Returns:
- The reserved service if the specified identifier is one of the
reserved identifiers or
null if these conditions are
not met.
lookupLocalService
protected java.lang.Object lookupLocalService(java.lang.String identifier)
- Description copied from class:
AbstractContext
- Returns a service registered under the specified identifier in this
registry or
null if no such service exists.
- Overrides:
lookupLocalService in class AbstractExecutionContext
- Parameters:
identifier - The identifier of the service to return, will never be
null.
- Returns:
- A service registered under the specified identifier in this
registry or
null if no such service exists.
lookupAllLocalServices
protected java.lang.Object[] lookupAllLocalServices(java.lang.String identifier)
- Description copied from class:
AbstractContext
- Returns all the services registered under the specified identifier in this
registry or
null if no such services can be found.
- Overrides:
lookupAllLocalServices in class AbstractExecutionContext
- Parameters:
identifier - The identifier of the services to return, will never be
null.
- Returns:
- All the services registered under the specified identifier in this
registry or
null if no such services can be found.
enqueue
public boolean enqueue(ICommand command)
- Description copied from interface:
ICommandProcessor
- Attempts to enqueue the specified command for execution by the process
controller.
- Specified by:
enqueue in interface ICommandProcessor
- Parameters:
command - The command to enqueue.
- Returns:
- True if the command was accepted by this queue.
process
public boolean process(ICommand command)
throws java.lang.IllegalStateException
- Description copied from interface:
ICommandProcessor
- Attempts to enqueue the specified command for execution by the process
controller and then waits for all commands in the queue to be processed
before returning.
- Specified by:
process in interface ICommandProcessor
- Parameters:
command - The command to enqueue.
- Returns:
- True if the command was accepted and processed by this queue.
- Throws:
java.lang.IllegalStateException - If the process controller is not in the
blocking state.